<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <title>Document</title>
</head>
<body>
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
    <script src="__STATIC__/public/js/aes.js"></script>
    <script src="__STATIC__/public/js/mode-ecb-min.js"></script>
    <script>
        $(function(){
            var encrypt_key = CryptoJS.enc.Utf8.parse('{$encrypt_key}'),
                encrypt_iv  = CryptoJS.enc.Utf8.parse('{$encrypt_key}'),
                app_uri     = 
                time        = (new Date()).getTime(),

                str = CryptoJS.AES.encrypt(str, encrypt_key, {
                iv: encrypt_iv,
                mode: CryptoJS.mode.ECB,
                padding: CryptoJS.pad.Pkcs7
            });
            
            str = str.toString();
            
            $.ajax({
                headers: {
                    time: (new Date()).getTime(),
                    
                },
                url: '{:url("test")}',
                type: 'POST',
                data: {},
                dataType: 'json',
                success: function(){
                    
                },
            })
        })
    </script>
</body>
</html>